Skip to content

Align pkg/linters spec dependencies with current analyzer surface#36660

Merged
pelikhan merged 2 commits into
mainfrom
copilot/spec-librarian-audit-fix
Jun 3, 2026
Merged

Align pkg/linters spec dependencies with current analyzer surface#36660
pelikhan merged 2 commits into
mainfrom
copilot/spec-librarian-audit-fix

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 3, 2026

The spec-librarian audit flagged a cross-package inconsistency in pkg/linters: the README dependency list did not include all analyzer dependencies it documents elsewhere. This PR updates the package spec so the documented dependency surface is internally consistent.

  • What changed

    • Updated pkg/linters/README.md## Dependencies**Internal** to include missing analyzer dependencies:
      • pkg/linters/fprintlnsprintf
      • pkg/linters/ossetenvlibrary
      • pkg/linters/uncheckedtypeassertion
  • Why this resolves the audit finding

    • Brings the dependency section in line with the analyzers already documented in the package overview/public API, removing the reported mismatch for linters.
  • Spec delta (excerpt)

    **Internal**:
    - `pkg/linters/errormessage` (via namespace compatibility export `ErrorMessageAnalyzer`).
    - `pkg/linters/fprintlnsprintf` (documented analyzer subpackage).
    - `pkg/linters/ossetenvlibrary` (documented analyzer subpackage).
    - `pkg/linters/uncheckedtypeassertion` (documented analyzer subpackage).

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix dependency mismatch in linters package Align pkg/linters spec dependencies with current analyzer surface Jun 3, 2026
Copilot AI requested a review from gh-aw-bot June 3, 2026 15:06
@pelikhan pelikhan marked this pull request as ready for review June 3, 2026 15:57
Copilot AI review requested due to automatic review settings June 3, 2026 15:57
@pelikhan pelikhan merged commit fcbd6f5 into main Jun 3, 2026
@pelikhan pelikhan deleted the copilot/spec-librarian-audit-fix branch June 3, 2026 15:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the pkg/linters package specification to make the documented dependency surface internally consistent with the analyzers described elsewhere in the README.

Changes:

  • Expanded pkg/linters/README.md## Dependencies**Internal** to include additional analyzer subpackages (fprintlnsprintf, ossetenvlibrary, uncheckedtypeassertion).
Show a summary per file
File Description
pkg/linters/README.md Adds additional internal dependency entries under the ## Dependencies section.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread pkg/linters/README.md
Comment on lines 90 to +94
**Internal**:
- `pkg/linters/errormessage` (via namespace compatibility export `ErrorMessageAnalyzer`).
- `pkg/linters/fprintlnsprintf` (documented analyzer subpackage).
- `pkg/linters/ossetenvlibrary` (documented analyzer subpackage).
- `pkg/linters/uncheckedtypeassertion` (documented analyzer subpackage).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[spec-librarian] Specification Audit — 2026-06-03 — 1 issue found

4 participants